<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="/common/base.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
    $(function(){
        //$('#ff').form('load',"<c:url value='/baihua/cjBean/getCjBean.do?id=${cjBean.id}'/>");
    });

    function save(){
        $("#ff").form('submit',{
            url:"<c:url value='/baihua/cjBean/saveCjBean.do'/>",
            onSubmit: function(){
            },
            success:function(data){
                data = eval('(' + data + ')');
                if(data.jm.flag===true)	//操作成功
                    window.top.CjBeanFrame.window.$("#listTable").datagrid('reload');
                msg("提示",data.jm.msg);
                cancel();

            }
        });
    }
    function cancel(){
        var winid="cjBean";
        closeWin(winid);
    }
</script>
</head>
<body>
<div class="easyui-layout" data-options="fit:true">
            <div data-options="region:'center'" style="padding:10px;">
                <form id="ff" method="post" novalidate >
                <!--开发人员需自己编辑以下不通用的字段显示-->
            <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="editTable">
                


            </table>

        </form>
            </div>
            <div data-options="region:'south',border:false" style="padding:5px 5px 5px 0px;">
                <div style="text-align:left;float: left;">
                    &nbsp;&nbsp;&nbsp;<span id="err" style="color: red"></span>
                </div>
                <div style="text-align: right;">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-save-data'" href="javascript:void(0)" onclick="save()">确定</a>

                <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="cancel()">取消</a>
                </div>
            </div>
        </div>
</body>
</html>
